import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DASHBOARD: AppRouteRecordRaw = {
  path: '/tiku',
  name: 'tiku',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '题库管理',
    requiresAuth: false,
    icon: 'icon-home',
    order: 2, // 排序
  },
  children: [
    {
      path: 'list',
      name: 'list',
      component: () => import('@/views/tiku/index.vue'),
      meta: {
        locale: '题库列表',
        requiresAuth: false,
        roles: ['*'],
      },
    },
  ],
};

export default DASHBOARD;
